﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminLogin.aspx.cs" Inherits="Admin_AdminLogin" MasterPageFile="~/Admin/AdminMasterLogin.master"%>
    
    <asp:Content ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../css/grid.css" rel="stylesheet" type="text/css" />
    <link href="../css/round.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
        .style1
        {
        }
    </style>
    
    <script language="javascript" type="text/javascript" >
    function downloadresume(resume)
    {
   
   var server = "../resumedownload.aspx?user=" + resume;
   var win  = window.open(server,"resume","",null);
   return false;
    }
    </script>

</asp:Content>

<asp:Content ContentPlaceHolderID="mainpanel" runat="server">

    <table style="width:100%;">     
    <tr>
    <td colspan="3"></td>
    </tr> 
        <tr>
            
            <td align="left">
           
                <asp:DropDownList ID="DrpFilter" runat="server" CssClass="select_options" CausesValidation="True">
                    <asp:ListItem Value="1">Select All Registered User</asp:ListItem>
                    <asp:ListItem Value="2">Select Paid Users</asp:ListItem>
                    <asp:ListItem Value="3">Select Unpaid Users</asp:ListItem>
                </asp:DropDownList>               
                <asp:Button ID="BtnGet" runat="server" onclick="Button1_Click" Text="Get"  CssClass="GetDetails"/>
               
            </td>
           
            
            <td align="right">
                <asp:DropDownList ID="DrpJobCategory" runat="server" CssClass="select_options">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="BtnGetJobcategory" runat="server" Text="Get" CssClass="GetDetails" onclick="BtnGetJobcategory_Click" />
            </td>
        </tr>        
        <tr>
            <td class="style1" colspan="3" style="color:Red;" id="msg" runat="server" visible="false">
                <b>Sorry No Records Found !!!</b></td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
               <asp:LinkButton ID="lnkAllUser" runat="server" Text="All User" OnClick="lnkAllUser_Click"></asp:LinkButton></td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="DGrdRegisteredUser" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" Width="100%" AutoGenerateColumns="False"  DataKeyNames="ID"
                    
                    onrowdatabound="DGrdRegisteredUser_RowDataBound" 
                    onrowcommand="DGrdRegisteredUser_RowCommand" AllowPaging="True" 
                    onpageindexchanging="DGrdRegisteredUser_PageIndexChanging" PageSize="50">
                    <PagerSettings FirstPageText="First" LastPageText="Last" 
                        Mode="NumericFirstLast" />
                    <FooterStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" >
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Regn Date" HeaderText="Regn Date" >
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" HeaderText="Name" >
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Email">
                            <ItemTemplate>
                                <asp:LinkButton ID="LnkEmail" runat="server"  CommandName='Email' CommandArgument='<%# Eval("Email") %>'
                                    Text='<%# Eval("Email") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="City" HeaderText="City" >
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Mobile" HeaderText="Mobile" >
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="CV" ShowHeader="False">
                            <ItemTemplate>
                                <input ID="LinkButton1" type="button" 
                                    value="Download" onclick="downloadresume('<%#Eval("Name") %>');" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Paid">
                            
                            <ItemTemplate>
                                <asp:CheckBox ID="ChkPaid" runat="server" Checked="false" /> 
                                    
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle BackColor="#E53333" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="right">
                <asp:Button ID="BtnSave" runat="server" Text="Save" onclick="BtnSave_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" style="color:white; text-align:center;" runat="server" id="TDMsgJobsAppliedByUser">
               <b><u>Jobs Applied By User As per Job Category</u></b></td>
            
        </tr>
        <tr>
            <td class="style1" colspan="3" runat="server" id="TDJobcategory">
                <asp:GridView ID="GrdJobCategory" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" Width="100%" AutoGenerateColumns="False" 
                    AllowPaging="True" onpageindexchanged="GrdJobCategory_PageIndexChanged" 
                    onpageindexchanging="GrdJobCategory_PageIndexChanging" 
                    onrowdatabound="GrdJobCategory_RowDataBound">
                    <FooterStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="CategoryID" Visible="False" />
                        <asp:BoundField DataField="UserName" HeaderText="User Name" />
                        <asp:BoundField DataField="CompanyName" HeaderText="Company Name" />
                        <asp:BoundField DataField="City" HeaderText="City" />
                        <asp:BoundField DataField="Title" HeaderText="Title" />
                        <asp:TemplateField HeaderText="Paid">
                            <ItemTemplate>
                                <asp:CheckBox ID="ChkP" runat="server" Checked="false"></asp:CheckBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle BackColor="#E53333" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>

</asp:Content>

